﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;

namespace Demo01.Designtime
{
    public class DetailPageViewModel: ViewModels.IDetailPageViewModel
    {
        public DetailPageViewModel()
        {
            var repository = new Repositories.ItemRepository();
            this.Item = repository.AllItems().First();
        }

        public Models.Item Item { get; set; }
        public Microsoft.Practices.Prism.Commands.DelegateCommand GoBackCommand { get; set; }
    }
}
